﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using dbPoll_Application.Models;

namespace dbPoll_Application.ViewModels
{
    public class NewParticipantViewModel
    {
        public String email;
        public Boolean success;
        public Poll poll;
        public NewParticipantViewModel(String email)
        {
            this.email = email;
        }
        public NewParticipantViewModel(Boolean success,int pollID)
        {
            this.success = success;
            this.poll = PollRepository.GetPollByID(pollID);
        }
    }
}
